projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3247c31
)
elisp-completion-at-point: Replace last usage of 'read'
author
Dmitry Gutov
<dgutov@yandex.ru>
Sat, 11 Jun 2022 00:45:46 +0000
(
03:45
+0300)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Sat, 11 Jun 2022 00:45:46 +0000
(
03:45
+0300)
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Replace the last remaining usage of 'read' (bug#55491).
lisp/progmodes/elisp-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/elisp-mode.el
b/lisp/progmodes/elisp-mode.el
index 77bf3f1ed181cba88aad3886c1481086cc5889b9..5989e1161b5ba657a34c445354fd731b547476d3 100644
(file)
--- a/
lisp/progmodes/elisp-mode.el
+++ b/
lisp/progmodes/elisp-mode.el
@@
-697,7
+697,10
@@
functions are annotated with \"<f>\" via the
(let ((c (char-after)))
(if (eq c ?\() ?\(
(if (memq (char-syntax c) '(?w ?_))
- (read (current-buffer))))))
+ (let ((pt (point)))
+ (forward-sexp)
+ (intern-soft
+ (buffer-substring pt (point))))))))
(error nil))))
(pcase parent
;; FIXME: Rather than hardcode special cases here,